<template>
  <div class="item-head">
    <div class="back" @click="$router.go(-1)">
      <van-icon name="arrow-left" />
    </div>
    <div class="gosearch">{{ title }}</div>
    <div class="changestyle" @click="emit">{{ handle }}</div>
  </div>
</template>

<script>
export default {
  props: ['title', 'handle'],
  methods: {
    emit () {
      this.$emit('handle')
    }
  }
}
</script>

<style lang="scss" scoped>
.item-head {
  background: #fff;
  position: fixed;
  z-index: 9999999999999999999;
  top: 0;
  width: 100%;
  padding: 0.15rem 0;
  box-sizing: border-box;
  height: 0.88rem;
  display: flex;
  border-bottom: 1px solid #ff344d;
  .back,
  .changestyle {
    text-align: center;
    width: 18%;
    font-size: 0.28rem;
    line-height: 0.56rem;
  }
  .gosearch {
    flex: 1;
    text-align: center;
    font-size: 0.32rem;
    line-height: 0.56rem;
    color: #000;
  }
}
</style>
